package br.edu.unifei.banded;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import br.edu.unifei.mestrado.commons.graph.RelationshipWrapper;
import br.edu.unifei.mestrado.commons.partition.AbstractPartition;
import br.edu.unifei.mestrado.commons.partition.AbstractPartitionIndex;

public class PartitionBandedDiffusion extends AbstractPartition {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	/**
	 * Estrutura de dados PARTITION.
	 * 
	 *id_set, SubSetBandedDiffusion
	 */
//	private Map<Integer, SubSetBandedDiffusion> sets = new HashMap<Integer, SubSetBandedDiffusion>();

	public PartitionBandedDiffusion(int level, int k, AbstractPartitionIndex index) {
		super(level, k, index);
	}
	
//	public void addEdgeToCut(int partition, RelationshipWrapper edge) {
//		super.addEdgeToCut(edge);
//
//		SubSetBandedDiffusion set = sets.get(partition);
//		set.addEdgeToCut(edge);
//	}
//	
//	public void removeEdgeFromCut(int partition, RelationshipWrapper edge) {
//		super.removeEdgeFromCut(edge);
//		
//		SubSetBandedDiffusion set = sets.get(partition);
//		set.removeEdgeFromCut(edge);
//	}
//
//	public SubSetBandedDiffusion getSetById(Integer partition) {
//		if (partition > getK()) {
//			throw new RuntimeException("Tentativa de acessar o set " + partition + "maior que K " + getK());
//		}
//		return sets.get(partition);
//	}

}
